export const routes = [
    {
        path: "/login",
        component: () => import("@/views/login/Index.vue"),
        name: "login",
        meta: {
            title: "登录",
            hidden: true,
            icon: "User",
        },
    },
    {
        path: "/",
        component: () => import("@/layout/Index.vue"),
        name: "layout",
        redirect: "/home",
        meta: {
            title: "",
            hidden: false,
            icon: "CirclePlus",
        },
        children: [
            {
                path: "/home",
                component: () => import("@/views/home/Index.vue"),
                meta: {
                    title: "首页",
                    hidden: false,
                    icon: "House",
                },
            },
        ],
    },
    {
        path: "/screen",
        component: () => import("@/views/screen/Index.vue"),
        name: "screen",
        meta: {
            title: "数据大屏",
            hidden: false,
            icon: "TrendCharts",
        },
    },
    {
        path: "/acl",
        component: () => import("@/layout/Index.vue"),
        name: "acl",
        meta: {
            title: "权限管理",
            hidden: false,
            icon: "Lock",
        },
        redirect: "/acl/user",
        children: [
            {
                path: "/acl/user",
                component: () => import("@/views/acl/user/Index.vue"),
                name: "user",
                meta: {
                    title: "用户管理",
                    hidden: false,
                    icon: "Avatar",
                },
            },
            {
                path: "/acl/role",
                component: () => import("@/views/acl/role/Index.vue"),
                name: "role",
                meta: {
                    title: "角色管理",
                    hidden: false,
                    icon: "Operation",
                },
            },
            {
                path: "/acl/menu",
                component: () => import("@/views/acl/menu/Index.vue"),
                name: "menu",
                meta: {
                    title: "菜单管理",
                    hidden: false,
                    icon: "FolderAdd",
                },
            },
        ],
    },
    {
        path: "/product",
        component: () => import("@/layout/Index.vue"),
        name: "product",
        meta: {
            title: "商品管理",
            hidden: false,
            icon: "Goods",
        },
        redirect: "/product/trademark",
        children: [
            {
                path: "/product/trademark",
                component: () => import("@/views/product/trademark/Index.vue"),
                name: "trademark",
                meta: {
                    title: "品牌管理",
                    hidden: false,
                    icon: "ShoppingCart",
                },
            },
            {
                path: "/product/attr",
                component: () => import("@/views/product/attr/Index.vue"),
                name: "attr",
                meta: {
                    title: "属性管理",
                    hidden: false,
                    icon: "Management",
                },
            },
            {
                path: "/product/spu",
                component: () => import("@/views/product/spu/Index.vue"),
                name: "spu",
                meta: {
                    title: "SPU管理",
                    hidden: false,
                    icon: "SetUp",
                },
            },
            {
                path: "/product/sku",
                component: () => import("@/views/product/sku/Index.vue"),
                name: "sku",
                meta: {
                    title: "SKU管理",
                    hidden: false,
                    icon: "ScaleToOriginal",
                },
            },
        ],
    },
    {
        path: "/404",
        component: () => import("@/views/404/Index.vue"),
        name: "404",
        meta: {
            title: "404",
            hidden: true,
            icon: "FolderDelete",
        },
    },
    {
        path: "/:pathMatch(.*)*",
        redirect: "/404",
        name: "Any",
        meta: {
            title: "任意路由",
            hidden: true,
            icon: "Promotion",
        },
    },
]
